package com.fance.service;


import com.fance.common.ServerResponse;
import com.fance.model.Category;

import java.util.List;

/**
 * @author fance
 * @date 18-4-30 上午11:53
 */

public interface ICategoryService {
    ServerResponse addCategory(String categoryName, Integer parentId);

    ServerResponse updateCategoryName(Integer categoryId, String categoryName);

    ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);

    ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);

}
